package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Map;

/**
 * 要素链的完整性对象 a_wzs
 *
 * @author ruoyi
 * @date 2020-07-08
 */
public class AWzs extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 要素链ID
     */
    private Long aCid;

    /**
     * 评估攻击ID
     */
    @Excel(name = "评估攻击ID")
    private Long aId;

    /**
     * 要素名称
     */
    @Excel(name = "要素名称")
    private String aCname;

    /**
     * 权重系数
     */
    @Excel(name = "权重系数")
    private String aCweight;

    /**
     * 标记出现
     */
    @Excel(name = "标记出现")
    private String aChas;

    /**
     * 1: 要素设置-破坏 2:要素设置-盗窃/抢夺 4：关联性要素设置  3：完整性要素记录 5:关联性要素记录
     */
    private String c_type;

    public AWzs() {
    }

    public AWzs(Map wzx, Long aId) {
        this.aId = aId;
        this.aCname = "" + wzx.get("aCname");
        this.aCweight = "" + wzx.get("aCweight");
        this.aChas = "" + wzx.get("aChas");
    }

    public void setaCid(Long aCid) {
        this.aCid = aCid;
    }

    public Long getaCid() {
        return aCid;
    }

    public void setaId(Long aId) {
        this.aId = aId;
    }

    public Long getaId() {
        return aId;
    }

    public void setaCname(String aCname) {
        this.aCname = aCname;
    }

    public String getaCname() {
        return aCname;
    }

    public void setaCweight(String aCweight) {
        this.aCweight = aCweight;
    }

    public String getaCweight() {
        return aCweight;
    }

    public void setaChas(String aChas) {
        this.aChas = aChas;
    }

    public String getaChas() {
        return aChas;
    }

    public String getC_type() {
        return c_type;
    }

    public void setC_type(String c_type) {
        this.c_type = c_type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("aCid", getaCid())
                .append("aId", getaId())
                .append("aCname", getaCname())
                .append("aCweight", getaCweight())
                .append("aChas", getaChas())
                .toString();
    }
}
